//
//  SAlertView.h
//  SAlterView
//
//  Created by Samuel on 15/9/1.
//  Copyright (c) 2015年 Samuel. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SAlertViewDelegate;
@interface SAlertView : UIView

+ (void)showSAlterViewTitle:(NSString*)title Message:(NSString*)message;

@property (nonatomic, weak)NSObject<SAlertViewDelegate> *delegate;
- (instancetype)initWithTitle:(NSString *)title
                      message:(NSString *)message
                     delegate:(id /*<UIAlertViewDelegate>*/)delegate
            cancelButtonTitle:(NSString *)cancelButtonTitle
          confirmButtonTitles:(NSString *)confirmButtonTitles;

- (instancetype)initWithView:(UIView *)centerView
                    delegate:(id /*<UIAlertViewDelegate>*/)delegate
                cancelButton:(UIButton *)cancelButton
                ortherButton:(UIButton *)ortherButton, ... NS_REQUIRES_NIL_TERMINATION;



- (void)show;
- (void)dismiss;

@end

@protocol SAlertViewDelegate <NSObject>

@required

@optional
- (void)sAlertView:(SAlertView *)sAlertView clickedButtonAtIndex:(NSInteger)buttonIndex;
@end



